home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: a1s@ix.netcom.com (Andrew Snyder)
- Newsgroups: comp.lang.c
- Subject: Re: Passing Parameters on Exit?
- Date: Tue, 06 Feb 1996 21:59:29 GMT
- Organization: Netcom
- Message-ID: <4f88lg$sdd@ixnews2.ix.netcom.com>
- References: <4f69hl$sp2@nic.umass.edu>
- NNTP-Posting-Host: ix-har5-19.ix.netcom.com
- X-NETCOM-Date: Tue Feb 06 11:03:12 AM PST 1996
- X-Newsreader: Forte Free Agent 1.0.82
-
- ksnella@twain.oit.umass.edu (Kenneth A Snella) wrote:
-
- >Is there any way to pass parameters out of a C program? I'm trying to
- >build a system that exits a C program and executes other programs (not
- >always C ones), but need to pass a couple of important items to the batch
- >file. Some mailers and BBS's seem to be able to do this, is there a
- >way? It seems as though a call to the Borland C++ 3.1 function system()
- >would be able to SET an environment parameter, but it doesn't seem to
- >work. Any suggestions?
-
- you need to write to a file or a pipe. The only things you can pass
- out of a C program is the int return from main or the enviroment to
- children processes.
- Andrew Snyder
- a1s@ix.netcom.com
- char disclaimer[] = {'\0'}; /* I'm on cash net */
-
-